package cn.legend.travel.admin.comment.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("hotel_comment_table")
public class HotelComment implements Serializable {
    @TableId(type = IdType.AUTO)
    Long id;
    Long hotelId;
    Long userId;
    Long pid;
    Long likeCount;
    Integer reportTimes;
    String content;
    Integer rate;
    Integer checkState;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;
}
